package zouran.service;

import org.springframework.transaction.annotation.Transactional;
import zouran.entity.FireCenter;
import zouran.entity.FireWeight;

import java.util.HashMap;
import java.util.List;

/**
 * Author：zouran
 * Date：2023/3/31  20:55
 * Description:
 */
@Transactional
public interface FireCenterService {
    List<FireCenter> getAllFireCenter();

    FireCenter getFireCenterByFireCenterId(long id);

    List<FireCenter> getAllNearFireCenterByPosition(Double lon, Double lat, Double lonDistance, Double latDistance);

    List<FireCenter> getAllNearFireCenterByEarthquakeId(long id);

    List<HashMap<String, Object>> getAllNearFireCenterPositionByEarthquakeId(long id);

    List<HashMap<String, Object>> getAllNearFireCenterPositionByPosition(Double lon, Double lat, Double lonDistance, Double latDistance);

    List<FireWeight> getNearFireCenterWeightByEarthquakeId(Long earthquakeId, Integer fireCenterCount);

    HashMap<String, Object> getFireCenterIdRange();
}
